// 资金流管理
export const CapitalFlowThead = [
  {
    type: 'selection',
    width: 60,
    align: 'center'
  },
  {
    title: '客户名称',
    key: 'companyName',
    minWidth: 200
  },
  {
    title: '累计到款总额',
    key: 'arriveTotal',
    minWidth: 150
  },
  {
    title: '累计付款总额',
    key: 'payTotal',
    minWidth: 150
  },
  {
    title: '账号余额',
    key: 'balance',
    minWidth: 150
  },
  {
    title: '操作',
    key: 'action',
    slot: 'action',
    minWidth: 150,
    align: 'center'
  }
]

// 资金流管理明细
export const CapitalFlowDetailThead = [
  {
    type: 'selection',
    width: 60,
    align: 'center'
  },
  {
    title: '时间',
    key: 'currentDate',
    minWidth: 200,
    render: (h, params) => {
      let row = params.row
      let times = ''
      if (row.currentDate) {
        times = row.currentDate.slice(0, 10).replace(/T/g, ' ')
      }
      return h('span', times)
    }
  },
  {
    title: '摘要',
    key: 'abstract',
    minWidth: 150
  },
  {
    title: '收款',
    key: 'arriveTotal',
    minWidth: 150
  },
  {
    title: '付款',
    key: 'payTotal',
    minWidth: 150
  },
  {
    title: '实时余额',
    key: 'rest',
    minWidth: 150
  }
]
